package com.csthink.web.application.service.impl;

import com.csthink.mysql.entity.WebPermission;
import com.csthink.mysql.repository.WebPermissionRepository;
import com.csthink.web.application.service.WebPermissionService;
import lombok.Setter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author <a href="mailto:security.2009@live.cn">Mars</a>
 * @since 2023-09-11
 */
@Service
public class WebPermissionServiceImp implements WebPermissionService {

    @Setter(onMethod_ = @Autowired)
    private WebPermissionRepository webPermissionRepository;

    @Override
    public WebPermission getByPermissionId(String id) {
        return webPermissionRepository.getByPermissionId(id);
    }
}
